package com.arron.factory.Shape;

import com.arron.factory.IShape;

public class ShapeFactory {
    public IShape getShape(String shapeType)
    {
        if(shapeType==null)
            return null;
        if(shapeType.equalsIgnoreCase("CIRCLE"))
            return new Circle();
        if(shapeType.equalsIgnoreCase("SQUARE"))
            return new Square();
        if(shapeType.equalsIgnoreCase("RECTANGLE"))
            return new Rectangle1();
        return null;
    }
}
